import pandas as pd

df = pd.read_csv("D:\py\pythonProject\population-data\data\originalData\分省性别比例数据.csv", skiprows=3,encoding="gbk")
df=df.iloc[:-2]


print(df.head())

df.to_csv(r"D:\py\pythonProject\population-data\data\temp\分省性别结构.csv",encoding="gbk")